<?php
global $wpdb; 
$tb_kh_img = 'gallery_selected_img'; 
// save yeu cau design 
if($_POST['action'] == 'design'){
	$where = array('id' => $_POST['xid'], 'type' => $_POST['type']); 
	$wpdb->update($tb_kh_img, array('comment' => $_POST['xcomment']), $where);
	echo $_POST['xcomment']; 
	die; 
}